package cn.ibizlab.odoo.core.odoo_mail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mail.domain.Mail_channel;
import cn.ibizlab.odoo.core.odoo_mail.filter.Mail_channelSearchContext;

/**
 * 实体[Mail_channel] 服务对象接口
 */

public interface IMail_channelService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean update(Mail_channel mail_channel) ;
     boolean remove(Integer id) ;
     boolean create(Mail_channel mail_channel) ;
     void createBatch(List<Mail_channel> mail_channels, int batchSize) ;
     Mail_channel get(Integer id) ;
     Mail_channel get(Mail_channel mail_channel) ;
     void updateBatch(List<Mail_channel> mail_channels, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mail_channel> searchDefault(Mail_channelSearchContext context) ;

    /**
     * 根据即时聊天查询
     */
     Page<Mail_channel> selectByOdoo_livechat_channel(Integer id) ;

    /**
     * 根据EMail别名查询
     */
     Page<Mail_channel> selectByOdoo_alias(Integer id) ;

    /**
     * 根据访问群查询
     */
     Page<Mail_channel> selectByOdoo_group_public(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mail_channel> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mail_channel> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mail_channel convert2Domain(cn.ibizlab.odoo.core.client.model.Imail_channel model ,Mail_channel domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imail_channel convert2Model(Mail_channel domain , cn.ibizlab.odoo.core.client.model.Imail_channel model);

}
